import { instance } from "../utils/request";
const getActionLogsPagination = async (page:number,limit:number,key?:string) => {
	return await instance.get("/ActionLogs/Pagination", {page,limit,key});
};

const addActionLogs = async (data:RequestCreateActionLogsDto) => {
	return await instance.post("/ActionLogs/Add", data);
};

const updateActionLogs = async (data:RequestUpdateActionLogsDto) => {
	return await instance.post("/ActionLogs/Update", data);
};

const getActionLogsDetail = async (id:number) => {
	return await instance.get("/ActionLogs/Detail", { id  });
};

const deleteActionLogs = async (data:RequestIdActionLogsDto) => {
	return await instance.post("/ActionLogs/Delete", data);
};

const ActionLogsApi = {
	getActionLogsPagination,
	addActionLogs,
	updateActionLogs,
	getActionLogsDetail,
	deleteActionLogs,
};

export default ActionLogsApi
